@extends('layout.master')

{{--add title here--}}
@section('title')
注册页
@stop

{{--add css styles here--}}
{{HTML::style('css/authority-common.css')}}



{{--add css scripts here--}}



@section('mainTopNav')

@stop

@section('content')
    <div class="jumbotron authority-jumbotron">
        <h1>用户注册</h1>
        <a class="btn btn-primary" href="{{URL::to('/product')}}"><i class="fa fa-main-reply"> 返回商店</i></a>
    </div>

    <div class="container">
        {{Form::open(['class' => 'authority-form', 'method' => 'post', 'action' => 'AuthorityController@postSignup'])}}
        <!--<form class="authority-form">-->
            <div class="form-group">
                <input class="form-control" type="text" name="username" placeholder="请输入用户名" required/>
                {{$errors->first('username','<div class="alert alert-danger alert-dismissible"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>:message</div>')}}
            </div>

            <div class="form-group">
                <input class="form-control" type="password" name="password" placeholder="请输入密码" required/>
                {{$errors->first('password','<div class="alert alert-danger alert-dismissible"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>:message</div>')}}
            </div>

            <div class="form-group">
                <input class="form-control" type="password" name="password_confirmation" placeholder="请再次输入密码" required/>
                {{$errors->first('password_confirmation','<div class="alert alert-danger alert-dismissible"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>:message</div>')}}
                {{$errors->first('signupFalse','<div class="alert alert-danger alert-dismissible"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>:message</div>')}}
            </div>
            
            <div class="form-group">
                <input class="form-control" type="email" name="email" placeholder="请输入邮箱" require/>
            </div>

            <div class="form-group">
                <button type="submit" class="btn btn-default authority-submit">注册</button>
            </div>

            <div class="jump-to">
                <p>已有账号?点击<a href="{{URL::to('/authority/login')}}">登录</a></p>
            </div>
        <!--</form>-->
        {{Form::close()}}
    </div>
@stop